package com.navi.loaddata.core.gpEntity;

import javax.persistence.*;
import java.sql.Timestamp;

@Entity
@Table(name = "mpp_layout_pnl_d", schema = "dm", catalog = "")
@IdClass(MppLayoutPnlDPK.class)
public class MppLayoutPnlD {
    private String layoutId;
    private int panelNo;
    private String unqSeqId;
    private Timestamp etlTimestamp;
    private String etlEventNode;
    private String etlEventName;
    private String etlEvtSeqId;
    private Integer parPanelNo;
    private String layoutDsc;
    private String layoutCate;
    private Double xCoord;
    private Double yCoord;
    private Double xAxisLength;
    private Double yAxisLength;
    private Double xCoordCut;
    private Double yCoordCut;
    private Double xAxisLengthCut;
    private Double yAxisLengthCut;
    private Integer rotationAngle;
    private String panelId;
    private String mrrLoc;
    private String posDsc;
    private String evtCate;
    private String evtUser;
    private Timestamp evtTimestamp;
    private String evtNote;
    private Integer dataCnt;
    private Integer gateCnt;
    private String validFlg;
    private Short dgOrigin;
    private Short dgMapXy;

    @Id
    @Column(name = "layout_id")
    public String getLayoutId() {
        return layoutId;
    }

    public void setLayoutId(String layoutId) {
        this.layoutId = layoutId;
    }

    @Id
    @Column(name = "panel_no")
    public int getPanelNo() {
        return panelNo;
    }

    public void setPanelNo(int panelNo) {
        this.panelNo = panelNo;
    }

    @Basic
    @Column(name = "unq_seq_id")
    public String getUnqSeqId() {
        return unqSeqId;
    }

    public void setUnqSeqId(String unqSeqId) {
        this.unqSeqId = unqSeqId;
    }

    @Basic
    @Column(name = "etl_timestamp")
    public Timestamp getEtlTimestamp() {
        return etlTimestamp;
    }

    public void setEtlTimestamp(Timestamp etlTimestamp) {
        this.etlTimestamp = etlTimestamp;
    }

    @Basic
    @Column(name = "etl_event_node")
    public String getEtlEventNode() {
        return etlEventNode;
    }

    public void setEtlEventNode(String etlEventNode) {
        this.etlEventNode = etlEventNode;
    }

    @Basic
    @Column(name = "etl_event_name")
    public String getEtlEventName() {
        return etlEventName;
    }

    public void setEtlEventName(String etlEventName) {
        this.etlEventName = etlEventName;
    }

    @Basic
    @Column(name = "etl_evt_seq_id")
    public String getEtlEvtSeqId() {
        return etlEvtSeqId;
    }

    public void setEtlEvtSeqId(String etlEvtSeqId) {
        this.etlEvtSeqId = etlEvtSeqId;
    }

    @Basic
    @Column(name = "par_panel_no")
    public Integer getParPanelNo() {
        return parPanelNo;
    }

    public void setParPanelNo(Integer parPanelNo) {
        this.parPanelNo = parPanelNo;
    }

    @Basic
    @Column(name = "layout_dsc")
    public String getLayoutDsc() {
        return layoutDsc;
    }

    public void setLayoutDsc(String layoutDsc) {
        this.layoutDsc = layoutDsc;
    }

    @Basic
    @Column(name = "layout_cate")
    public String getLayoutCate() {
        return layoutCate;
    }

    public void setLayoutCate(String layoutCate) {
        this.layoutCate = layoutCate;
    }

    @Basic
    @Column(name = "x_coord")
    public Double getxCoord() {
        return xCoord;
    }

    public void setxCoord(Double xCoord) {
        this.xCoord = xCoord;
    }

    @Basic
    @Column(name = "y_coord")
    public Double getyCoord() {
        return yCoord;
    }

    public void setyCoord(Double yCoord) {
        this.yCoord = yCoord;
    }

    @Basic
    @Column(name = "x_axis_length")
    public Double getxAxisLength() {
        return xAxisLength;
    }

    public void setxAxisLength(Double xAxisLength) {
        this.xAxisLength = xAxisLength;
    }

    @Basic
    @Column(name = "y_axis_length")
    public Double getyAxisLength() {
        return yAxisLength;
    }

    public void setyAxisLength(Double yAxisLength) {
        this.yAxisLength = yAxisLength;
    }

    @Basic
    @Column(name = "x_coord_cut")
    public Double getxCoordCut() {
        return xCoordCut;
    }

    public void setxCoordCut(Double xCoordCut) {
        this.xCoordCut = xCoordCut;
    }

    @Basic
    @Column(name = "y_coord_cut")
    public Double getyCoordCut() {
        return yCoordCut;
    }

    public void setyCoordCut(Double yCoordCut) {
        this.yCoordCut = yCoordCut;
    }

    @Basic
    @Column(name = "x_axis_length_cut")
    public Double getxAxisLengthCut() {
        return xAxisLengthCut;
    }

    public void setxAxisLengthCut(Double xAxisLengthCut) {
        this.xAxisLengthCut = xAxisLengthCut;
    }

    @Basic
    @Column(name = "y_axis_length_cut")
    public Double getyAxisLengthCut() {
        return yAxisLengthCut;
    }

    public void setyAxisLengthCut(Double yAxisLengthCut) {
        this.yAxisLengthCut = yAxisLengthCut;
    }

    @Basic
    @Column(name = "rotation_angle")
    public Integer getRotationAngle() {
        return rotationAngle;
    }

    public void setRotationAngle(Integer rotationAngle) {
        this.rotationAngle = rotationAngle;
    }

    @Basic
    @Column(name = "panel_id")
    public String getPanelId() {
        return panelId;
    }

    public void setPanelId(String panelId) {
        this.panelId = panelId;
    }

    @Basic
    @Column(name = "mrr_loc")
    public String getMrrLoc() {
        return mrrLoc;
    }

    public void setMrrLoc(String mrrLoc) {
        this.mrrLoc = mrrLoc;
    }

    @Basic
    @Column(name = "pos_dsc")
    public String getPosDsc() {
        return posDsc;
    }

    public void setPosDsc(String posDsc) {
        this.posDsc = posDsc;
    }

    @Basic
    @Column(name = "evt_cate")
    public String getEvtCate() {
        return evtCate;
    }

    public void setEvtCate(String evtCate) {
        this.evtCate = evtCate;
    }

    @Basic
    @Column(name = "evt_user")
    public String getEvtUser() {
        return evtUser;
    }

    public void setEvtUser(String evtUser) {
        this.evtUser = evtUser;
    }

    @Basic
    @Column(name = "evt_timestamp")
    public Timestamp getEvtTimestamp() {
        return evtTimestamp;
    }

    public void setEvtTimestamp(Timestamp evtTimestamp) {
        this.evtTimestamp = evtTimestamp;
    }

    @Basic
    @Column(name = "evt_note")
    public String getEvtNote() {
        return evtNote;
    }

    public void setEvtNote(String evtNote) {
        this.evtNote = evtNote;
    }

    @Basic
    @Column(name = "data_cnt")
    public Integer getDataCnt() {
        return dataCnt;
    }

    public void setDataCnt(Integer dataCnt) {
        this.dataCnt = dataCnt;
    }

    @Basic
    @Column(name = "gate_cnt")
    public Integer getGateCnt() {
        return gateCnt;
    }

    public void setGateCnt(Integer gateCnt) {
        this.gateCnt = gateCnt;
    }

    @Basic
    @Column(name = "valid_flg")
    public String getValidFlg() {
        return validFlg;
    }

    public void setValidFlg(String validFlg) {
        this.validFlg = validFlg;
    }

    @Basic
    @Column(name = "dg_origin")
    public Short getDgOrigin() {
        return dgOrigin;
    }

    public void setDgOrigin(Short dgOrigin) {
        this.dgOrigin = dgOrigin;
    }

    @Basic
    @Column(name = "dg_map_xy")
    public Short getDgMapXy() {
        return dgMapXy;
    }

    public void setDgMapXy(Short dgMapXy) {
        this.dgMapXy = dgMapXy;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        MppLayoutPnlD that = (MppLayoutPnlD) o;

        if (panelNo != that.panelNo) return false;
        if (layoutId != null ? !layoutId.equals(that.layoutId) : that.layoutId != null) return false;
        if (unqSeqId != null ? !unqSeqId.equals(that.unqSeqId) : that.unqSeqId != null) return false;
        if (etlTimestamp != null ? !etlTimestamp.equals(that.etlTimestamp) : that.etlTimestamp != null) return false;
        if (etlEventNode != null ? !etlEventNode.equals(that.etlEventNode) : that.etlEventNode != null) return false;
        if (etlEventName != null ? !etlEventName.equals(that.etlEventName) : that.etlEventName != null) return false;
        if (etlEvtSeqId != null ? !etlEvtSeqId.equals(that.etlEvtSeqId) : that.etlEvtSeqId != null) return false;
        if (parPanelNo != null ? !parPanelNo.equals(that.parPanelNo) : that.parPanelNo != null) return false;
        if (layoutDsc != null ? !layoutDsc.equals(that.layoutDsc) : that.layoutDsc != null) return false;
        if (layoutCate != null ? !layoutCate.equals(that.layoutCate) : that.layoutCate != null) return false;
        if (xCoord != null ? !xCoord.equals(that.xCoord) : that.xCoord != null) return false;
        if (yCoord != null ? !yCoord.equals(that.yCoord) : that.yCoord != null) return false;
        if (xAxisLength != null ? !xAxisLength.equals(that.xAxisLength) : that.xAxisLength != null) return false;
        if (yAxisLength != null ? !yAxisLength.equals(that.yAxisLength) : that.yAxisLength != null) return false;
        if (xCoordCut != null ? !xCoordCut.equals(that.xCoordCut) : that.xCoordCut != null) return false;
        if (yCoordCut != null ? !yCoordCut.equals(that.yCoordCut) : that.yCoordCut != null) return false;
        if (xAxisLengthCut != null ? !xAxisLengthCut.equals(that.xAxisLengthCut) : that.xAxisLengthCut != null)
            return false;
        if (yAxisLengthCut != null ? !yAxisLengthCut.equals(that.yAxisLengthCut) : that.yAxisLengthCut != null)
            return false;
        if (rotationAngle != null ? !rotationAngle.equals(that.rotationAngle) : that.rotationAngle != null)
            return false;
        if (panelId != null ? !panelId.equals(that.panelId) : that.panelId != null) return false;
        if (mrrLoc != null ? !mrrLoc.equals(that.mrrLoc) : that.mrrLoc != null) return false;
        if (posDsc != null ? !posDsc.equals(that.posDsc) : that.posDsc != null) return false;
        if (evtCate != null ? !evtCate.equals(that.evtCate) : that.evtCate != null) return false;
        if (evtUser != null ? !evtUser.equals(that.evtUser) : that.evtUser != null) return false;
        if (evtTimestamp != null ? !evtTimestamp.equals(that.evtTimestamp) : that.evtTimestamp != null) return false;
        if (evtNote != null ? !evtNote.equals(that.evtNote) : that.evtNote != null) return false;
        if (dataCnt != null ? !dataCnt.equals(that.dataCnt) : that.dataCnt != null) return false;
        if (gateCnt != null ? !gateCnt.equals(that.gateCnt) : that.gateCnt != null) return false;
        if (validFlg != null ? !validFlg.equals(that.validFlg) : that.validFlg != null) return false;
        if (dgOrigin != null ? !dgOrigin.equals(that.dgOrigin) : that.dgOrigin != null) return false;
        if (dgMapXy != null ? !dgMapXy.equals(that.dgMapXy) : that.dgMapXy != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = layoutId != null ? layoutId.hashCode() : 0;
        result = 31 * result + panelNo;
        result = 31 * result + (unqSeqId != null ? unqSeqId.hashCode() : 0);
        result = 31 * result + (etlTimestamp != null ? etlTimestamp.hashCode() : 0);
        result = 31 * result + (etlEventNode != null ? etlEventNode.hashCode() : 0);
        result = 31 * result + (etlEventName != null ? etlEventName.hashCode() : 0);
        result = 31 * result + (etlEvtSeqId != null ? etlEvtSeqId.hashCode() : 0);
        result = 31 * result + (parPanelNo != null ? parPanelNo.hashCode() : 0);
        result = 31 * result + (layoutDsc != null ? layoutDsc.hashCode() : 0);
        result = 31 * result + (layoutCate != null ? layoutCate.hashCode() : 0);
        result = 31 * result + (xCoord != null ? xCoord.hashCode() : 0);
        result = 31 * result + (yCoord != null ? yCoord.hashCode() : 0);
        result = 31 * result + (xAxisLength != null ? xAxisLength.hashCode() : 0);
        result = 31 * result + (yAxisLength != null ? yAxisLength.hashCode() : 0);
        result = 31 * result + (xCoordCut != null ? xCoordCut.hashCode() : 0);
        result = 31 * result + (yCoordCut != null ? yCoordCut.hashCode() : 0);
        result = 31 * result + (xAxisLengthCut != null ? xAxisLengthCut.hashCode() : 0);
        result = 31 * result + (yAxisLengthCut != null ? yAxisLengthCut.hashCode() : 0);
        result = 31 * result + (rotationAngle != null ? rotationAngle.hashCode() : 0);
        result = 31 * result + (panelId != null ? panelId.hashCode() : 0);
        result = 31 * result + (mrrLoc != null ? mrrLoc.hashCode() : 0);
        result = 31 * result + (posDsc != null ? posDsc.hashCode() : 0);
        result = 31 * result + (evtCate != null ? evtCate.hashCode() : 0);
        result = 31 * result + (evtUser != null ? evtUser.hashCode() : 0);
        result = 31 * result + (evtTimestamp != null ? evtTimestamp.hashCode() : 0);
        result = 31 * result + (evtNote != null ? evtNote.hashCode() : 0);
        result = 31 * result + (dataCnt != null ? dataCnt.hashCode() : 0);
        result = 31 * result + (gateCnt != null ? gateCnt.hashCode() : 0);
        result = 31 * result + (validFlg != null ? validFlg.hashCode() : 0);
        result = 31 * result + (dgOrigin != null ? dgOrigin.hashCode() : 0);
        result = 31 * result + (dgMapXy != null ? dgMapXy.hashCode() : 0);
        return result;
    }
}
